import { configureStore } from "@reduxjs/toolkit";
import appSlice from "./app/appSlice";
import homeSlice from "./home/homeSlice";

function makeStore(){
  return configureStore({
    reducer: {
      app:appSlice,
      home: homeSlice
    }
  })
}

const store = makeStore()

export type RootState = ReturnType<typeof store.getState>;
export type AppDispatch = typeof store.dispatch
export default store